package com.cqcomponents.api.components;

import java.util.Set;

import org.apache.sling.api.resource.Resource;

import com.cqcomponents.api.exceptions.MandatoryComponentException;
import com.day.cq.wcm.api.WCMMode;

public interface IComponentManager {

	public IComponent getComponentFromResource(Resource resource)
			throws MandatoryComponentException;

	public String getCachedContent(WCMMode wcmMode, String path);

	public void addToCache(WCMMode wcmMode, String path, String content);

	public void removeFromCache(Set<String> pathsToRemove);
}
